package com.google.code.lightsomy.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotates the method as a publicly accessible controllers action.
 * 
 * @author Viktoras Agejevas
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Action {
	
	/**
	 * Master layout file (template) path.
	 * 
	 * @return layout template path
	 */
	String layout() default "";
	
	/**
	 * Regular expression to access this action.
	 * 
	 * @return regular expression
	 */
	String route() default "";
}
